package com.hua.struct;

public class WhileDemo03 {

    //1 +2 +3 +。。。100
    public static void main(String[] args) {
        int i = 1;
        int sum = 0;
        while (i<=100){
            sum = i+sum;
            i++;
        }
        System.out.println(sum);

    }
}
